.class Lcom/instagram/android/feed/a/a/s;
.super Landroid/os/Handler;
.source "FeedVideoPlayer.java"


# instance fields
.field final synthetic a:Lcom/instagram/android/feed/a/a/l;


# direct methods
.method private constructor <init>(Lcom/instagram/android/feed/a/a/l;)V
    .locals 0
    .parameter

    .prologue
    .line 379
    iput-object p1, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    .line 380
    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/android/feed/a/a/l;Lcom/instagram/android/feed/a/a/m;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 377
    invoke-direct {p0, p1}, Lcom/instagram/android/feed/a/a/s;-><init>(Lcom/instagram/android/feed/a/a/l;)V

    return-void
.end method


# virtual methods
.method public a(Landroid/net/Uri;)V
    .locals 1
    .parameter

    .prologue
    .line 435
    const/4 v0, 0x1

    invoke-virtual {p0, v0, p1}, Lcom/instagram/android/feed/a/a/s;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/instagram/android/feed/a/a/s;->sendMessage(Landroid/os/Message;)Z

    .line 436
    return-void
.end method

.method public handleMessage(Landroid/os/Message;)V
    .locals 4
    .parameter "msg"

    .prologue
    .line 384
    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    .line 432
    :goto_0
    return-void

    .line 388
    :pswitch_0
    :try_start_0
    invoke-static {}, Lcom/instagram/android/mediacache/n;->a()Lcom/instagram/android/mediacache/n;

    move-result-object v1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Landroid/net/Uri;

    invoke-virtual {v1, v0}, Lcom/instagram/android/mediacache/n;->d(Landroid/net/Uri;)Lcom/instagram/android/mediacache/s;

    move-result-object v0

    .line 389
    if-eqz v0, :cond_0

    .line 390
    iget-object v1, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v1}, Lcom/instagram/android/feed/a/a/l;->i(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/android/v/b/d;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/android/mediacache/s;->a()Ljava/io/FileDescriptor;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/android/v/b/d;->a(Ljava/io/FileDescriptor;)V

    .line 391
    invoke-virtual {v0}, Lcom/instagram/android/mediacache/s;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 397
    :cond_0
    :goto_1
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v0}, Lcom/instagram/android/feed/a/a/l;->f(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/j/l;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v1}, Lcom/instagram/android/feed/a/a/l;->g(Lcom/instagram/android/feed/a/a/l;)I

    move-result v1

    iget-object v2, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v2}, Lcom/instagram/android/feed/a/a/l;->h(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/b/d;

    move-result-object v2

    invoke-static {v0, v1, v2}, Lcom/instagram/android/v/b/c;->a(Lcom/instagram/j/l;ILcom/instagram/b/d;)V

    goto :goto_0

    .line 393
    :catch_0
    move-exception v0

    .line 394
    invoke-static {}, Lcom/instagram/android/feed/a/a/l;->g()Ljava/lang/Class;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Unable to set video for uri "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->c(Ljava/lang/Class;Ljava/lang/String;)V

    goto :goto_1

    .line 404
    :pswitch_1
    :try_start_1
    new-instance v1, Ljava/io/FileInputStream;

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V

    .line 405
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v0}, Lcom/instagram/android/feed/a/a/l;->i(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/android/v/b/d;

    move-result-object v0

    invoke-virtual {v1}, Ljava/io/FileInputStream;->getFD()Ljava/io/FileDescriptor;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/android/v/b/d;->a(Ljava/io/FileDescriptor;)V

    .line 406
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2

    .line 413
    :goto_2
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v0}, Lcom/instagram/android/feed/a/a/l;->f(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/j/l;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v1}, Lcom/instagram/android/feed/a/a/l;->g(Lcom/instagram/android/feed/a/a/l;)I

    move-result v1

    iget-object v2, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v2}, Lcom/instagram/android/feed/a/a/l;->h(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/b/d;

    move-result-object v2

    invoke-static {v0, v1, v2}, Lcom/instagram/android/v/b/c;->a(Lcom/instagram/j/l;ILcom/instagram/b/d;)V

    goto/16 :goto_0

    .line 407
    :catch_1
    move-exception v0

    .line 408
    invoke-static {}, Lcom/instagram/android/feed/a/a/l;->g()Ljava/lang/Class;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Unable to play local video "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->c(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_2

    .line 409
    :catch_2
    move-exception v0

    .line 410
    invoke-static {}, Lcom/instagram/android/feed/a/a/l;->g()Ljava/lang/Class;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Unable to play local video "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->c(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_2

    .line 419
    :pswitch_2
    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lcom/instagram/android/feed/a/a/s;->removeMessages(I)V

    .line 420
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v0}, Lcom/instagram/android/feed/a/a/l;->i(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/android/v/b/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/v/b/d;->e()V

    goto/16 :goto_0

    .line 424
    :pswitch_3
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/instagram/android/feed/a/a/l;->b(Lcom/instagram/android/feed/a/a/l;Z)Z

    goto/16 :goto_0

    .line 428
    :pswitch_4
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v0}, Lcom/instagram/android/feed/a/a/l;->b(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/android/feed/a/b/ae;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/b/ae;->a()Lcom/instagram/android/mediacache/i;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v1}, Lcom/instagram/android/feed/a/a/l;->j(Lcom/instagram/android/feed/a/a/l;)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/mediacache/i;->startAnimation(Landroid/view/animation/Animation;)V

    .line 429
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/s;->a:Lcom/instagram/android/feed/a/a/l;

    invoke-static {v0}, Lcom/instagram/android/feed/a/a/l;->b(Lcom/instagram/android/feed/a/a/l;)Lcom/instagram/android/feed/a/b/ae;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/b/ae;->d()Lcom/instagram/creation/video/ui/MediaActionsView;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/ui/g;->d:Lcom/instagram/creation/video/ui/g;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/MediaActionsView;->a(Lcom/instagram/creation/video/ui/g;)V

    goto/16 :goto_0

    .line 384
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_1
    .end packed-switch
.end method
